fix uninitialized variable error in do_poll()
authorJan Beulich <jbeulich@suse.com>
Fri, 5 Oct 2018 14:24:56 +0000 (16:24 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 5 Oct 2018 14:24:56 +0000 (16:24 +0200)
commit34af96ed586fa4594453fabccbd87a5eb686ff16
treed2a4e559a5313e9c830bf23cc53a2aa1dd4d343a
parentbacb35445d4a8e0359027aafc407e84202cfe4a9
fix uninitialized variable error in do_poll()

Now that CONFIG_HVM can (and should) be turned off for the shim, gcc 8.2
apparently is no longer sure that "port" is indeed initialized at

    if ( sched_poll->nr_ports == 1 )
        v->poll_evtchn = port;

It doesn't look to be impossible for the compiler to prove it is not,
but we also can't rely on that to be the case. Add an initializer.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
xen/common/schedule.c